package com.zhangliuliu.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.util.List;

@TableName("consult")
public class ConsultBean {
    /**
     * 会商灾情实体
     */

    @TableId(value = "pk_conid",type = IdType.AUTO)
    //会商记录的编号
    private int id;
    //会商人员
//    private List<ExpertBean> experts;
    @TableField("con_person")
    private  String consultPerson;
    //会商信息及会商结果
    @TableField("con_message")
    private  String message;
    @TableField("con_date")
    //日期
    private LocalDate localDate=LocalDate.now();

    public ConsultBean() {
    }

    public ConsultBean(String consultPerson, String message) {
        this.consultPerson = consultPerson;
        this.message = message;
    }



    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getConsultPerson() {
        return consultPerson;
    }

    public void setConsultPerson(String consultPerson) {
        this.consultPerson = consultPerson;
    }

    public LocalDate getLocalDate() {
        return localDate;
    }

    public void setLocalDate(LocalDate localDate) {
        this.localDate = localDate;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "ConsultBean{" +
                "id=" + id +
                ", consultPerson='" + consultPerson + '\'' +
                ", message='" + message + '\'' +
                ", localDate=" + localDate +
                '}';
    }
}
